CodeGeneratorAdapter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A generate 0 2 1
1
import { Injectable } from '@nestjs/common';
2
import * as shortid from 'shortid';
3
import { ICodeGenerator } from 'src/Application/ICodeGenerator';
4
5
@Injectable()
6
export class CodeGeneratorAdapter implements ICodeGenerator {
7
  public generate(): string {
8
    return shortid.generate();
9
  }
10
}
11